package com.iotp.dao.knowledge;

import com.iotp.entity.knowledge.Knowledge;
import com.iotp.entity.knowledge.KnowledgeWithBLOBs;
import org.apache.ibatis.annotations.Mapper;

import javax.annotation.ManagedBean;
import java.util.List;

@Mapper
public interface KnowledgeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(KnowledgeWithBLOBs record);

    int insertSelective(KnowledgeWithBLOBs record);

    KnowledgeWithBLOBs selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(KnowledgeWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(KnowledgeWithBLOBs record);

    int updateByPrimaryKey(Knowledge record);

    List<KnowledgeWithBLOBs> selectByCondition(Knowledge knowledge);

    List<Knowledge> selectByTypeId(Long kTypeId);

    List<KnowledgeWithBLOBs> selectSc(List ids);
}